// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.

//
// Office UI Fabric
// --------------------------------------------------
// Facepile styles


.ms-Facepile {
  position: relative;
  height: 32px;
  width: auto;

  .ms-PersonaCard {
    display: none;
    position: absolute;
    top: 40px;
    height: 200px;

    &.is-active {
      display: block;
    }
  }
}

.ms-Facepile-itemBtn {
  @include button-reset();
  position: relative;
  height: 32px;
  width: 32px;
  line-height: 32px;
  text-align: center;
  float: left;
  padding: 0;
  margin-right: 4px;
  outline: transparent;
  border-radius: 50%;
  vertical-align: top;

  .ms-Persona-presence,
  .ms-Persona-details {
    display: none;
  }
}

.ms-Facepile-itemBtn.ms-Facepile-itemBtn--addPerson {
  background-color: $ms-color-themePrimary;
  color: $ms-color-white;
  font-size: $ms-font-size-l - 1;

  &:hover,
  &:focus {
    background-color: $ms-color-themeDark;
  }

  &:active {
    background-color: $ms-color-themeDarker;
  }

  &:disabled {
    background-color: $ms-color-neutralTertiaryAlt;
  }
}

.ms-Facepile-itemBtn.ms-Facepile-itemBtn--overflow {
  background-color: $ms-color-neutralLight;
  color: $ms-color-neutralSecondary;
  display: none;

  &.is-active {
    display: block;
  }

  &:hover {
    color: $ms-color-neutralDark;
  }

  &:disabled {
    color: $ms-color-neutralTertiaryAlt;
  }
}

.ms-Facepile-addPersonIcon {
  position: relative;
  top: -1px;
}

.ms-Facepile-overflowText {
  font-size: $ms-font-size-m;
}

//== Panels
// Overflow panel - only show member list
.ms-Facepile-panel.ms-Facepile-panel--overflow {
  .ms-Panel-headerText,
  .ms-PeoplePicker-searchBox,
  .ms-PeoplePicker-results,
  .ms-PeoplePicker-resultAction {
    display: none;
  }

  .ms-PeoplePicker-selectedHeader {
    font-family: $ms-font-family-light;
    font-size: $ms-font-size-xl;
    color: $ms-color-neutralPrimary;
    line-height: 82px;
    height: 74px;
    text-transform: none;
  }
}
